package com.qianfeng.dbsm.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.ToString;

import java.io.Serializable;

/**
 * (TbUserAddress)表实体类
 *
 * @author makejava
 * @since 2022-11-17 19:20:53
 */
@SuppressWarnings("serial")
@ToString
public class TbUserAddress extends Model<TbUserAddress> {
    //主键 用于与关联订单表
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键 用于与关联订单表")
    private Integer id;
    //用户编号
    @ApiModelProperty(value = "用户编号")
    private Integer userId;
    //收货人姓名
    @ApiModelProperty(value = "收货人姓名")
    private String receiverName;
    //收货人电话
    @ApiModelProperty(value = "收货人电话")
    private String receiverMobile;
    //省
    @ApiModelProperty(value = "省")
    private String receiverProvince;
    //市
    @ApiModelProperty(value = "市")
    private String receiverCity;
    //区
    @ApiModelProperty(value = "区")
    private String receiverDistrict;
    //详细地址
    @ApiModelProperty(value = "详细地址")
    private String receiverAddress;
    //邮编
    @ApiModelProperty(value = "邮编")
    private String receiverZip;
    //1:默认 0：非默认
    @ApiModelProperty(value = "1:默认 0：非默认")
    private Integer isDefault;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getReceiverName() {
        return receiverName;
    }

    public void setReceiverName(String receiverName) {
        this.receiverName = receiverName;
    }

    public String getReceiverMobile() {
        return receiverMobile;
    }

    public void setReceiverMobile(String receiverMobile) {
        this.receiverMobile = receiverMobile;
    }

    public String getReceiverProvince() {
        return receiverProvince;
    }

    public void setReceiverProvince(String receiverProvince) {
        this.receiverProvince = receiverProvince;
    }

    public String getReceiverCity() {
        return receiverCity;
    }

    public void setReceiverCity(String receiverCity) {
        this.receiverCity = receiverCity;
    }

    public String getReceiverDistrict() {
        return receiverDistrict;
    }

    public void setReceiverDistrict(String receiverDistrict) {
        this.receiverDistrict = receiverDistrict;
    }

    public String getReceiverAddress() {
        return receiverAddress;
    }

    public void setReceiverAddress(String receiverAddress) {
        this.receiverAddress = receiverAddress;
    }

    public String getReceiverZip() {
        return receiverZip;
    }

    public void setReceiverZip(String receiverZip) {
        this.receiverZip = receiverZip;
    }

    public Integer getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(Integer isDefault) {
        this.isDefault = isDefault;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    }

